//
//  WCFontToStringTransformer.m
//  WabbitCode
//
//  Created by William Towe on 1/7/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "WCFontToStringTransformer.h"


@implementation WCFontToStringTransformer
+ (Class)transformedValueClass { return [NSString class]; }
+ (BOOL)allowsReverseTransformation { return NO; }
- (id)transformedValue:(id)value {
    NSFont *font = [NSKeyedUnarchiver unarchiveObjectWithData:value];
	return [NSString stringWithFormat:@"%@ - %.0fpt", [font fontName], [font pointSize]];
}
@end
